home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / PInterfaces / OCEStandardDirectory.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  20.7 KB  |  599 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        OCEStandardDirectory.p
  3.  
  4.      Contains:    Apple Open Collaboration Environment Standard Directory Interfaces.
  5.  
  6.      Version:    Technology:    AOCE Toolbox 1.02
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT OCEStandardDirectory;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __OCESTANDARDDIRECTORY__}
  27. {$SETC __OCESTANDARDDIRECTORY__ := 1}
  28.  
  29. {$I+}
  30. {$SETC OCEStandardDirectoryIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __ICONS__}
  34. {$I Icons.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __MACTYPES__}
  37. {$I MacTypes.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __QUICKDRAW__}
  40. {$I Quickdraw.p}
  41. {$ENDC}
  42.  
  43. {$IFC UNDEFINED __OCE__}
  44. {$I OCE.p}
  45. {$ENDC}
  46. {$IFC UNDEFINED __OCEAUTHDIR__}
  47. {$I OCEAuthDir.p}
  48. {$ENDC}
  49.  
  50.  
  51. {$PUSH}
  52. {$ALIGN MAC68K}
  53. {$LibExport+}
  54.  
  55.  
  56. { generic icon suites }
  57.  
  58. CONST
  59.     genericDirectoryIconResource = -16721;                        {  icl8, icl4, ICN#, ics#, ics4, ics8, sicn   }
  60.     genericLockedDirectoryIconResource = -16716;                {  icl8, icl4, ICN#, ics#, ics4, ics8, sicn   }
  61.     genericRecordIconResource    = -16722;                        {  icl8, icl4, ICN#, ics#, ics4, ics8, sicn   }
  62.     genericAttributeIconResource = -16723;                        {  icl8, icl4, ICN#, ics#, ics4, ics8, sicn   }
  63.     genericTemplateIconResource    = -16746;                        {  icl8, icl4, ICN#, ics#, ics4, ics8  }
  64.  
  65.  
  66. { standard icon suites }
  67.     directoryFolderIconResource    = -16720;                        {  icl8, icl4, ICN#, ics#, ics4, ics8, sicn   }
  68.     lockedDirectoryFolderIconResource = -16719;                    {  icl8, icl4, ICN#, ics#, ics4, ics8, sicn   }
  69.     personalDirectoryIconResource = -16718;                        {  icl8, icl4, ICN#, ics#, ics4, ics8, sicn   }
  70.     directoriesIconResource        = -16717;                        {  icl8, icl4, ICN#, ics#, ics4, ics8, sicn   }
  71.     preferredPersonalDirectoryIconResource = -16724;            {  icl8, icl4, ICN#, ics#, ics4, ics8, sicn   }
  72.  
  73. { icon IDs for spinning arrows }
  74.     kFirstSpinnerIcon            = -16745;
  75.     kLastSpinnerIcon            = -16738;
  76.  
  77. { resource types }
  78.     kSDPPanelResourceType        = 'panl';
  79.     kSDPFindPanelResourceType    = 'find';
  80.  
  81. { Standard FindPanel resource }
  82.     kStandardFindLayout            = -16700;
  83.  
  84. { Prompt For Identity structures }
  85.     kSDPGuestBit                = 0;
  86.     kSDPSpecificIdentityBit        = 1;
  87.     kSDPLocalIdentityBit        = 2;
  88.  
  89. { Values of SDPIdentityKind }
  90.     kSDPGuestMask                = $01;
  91.     kSDPSpecificIdentityMask    = $02;
  92.     kSDPLocalIdentityMask        = $04;
  93.  
  94.  
  95. TYPE
  96.     SDPIdentityKind                        = UInt16;
  97.  
  98. CONST
  99.     kSDPSuggestionOnly            = 0;
  100.     kSDPRestrictToDirectory        = 1;
  101.     kSDPRestrictToRecord        = 2;
  102.  
  103.  
  104. TYPE
  105.     SDPLoginFilterKind                    = UInt16;
  106.  
  107.  
  108. { Panel Structures }
  109. {
  110. While the panel is in operation, four selection states may exist.
  111.     1) kSDPNothingSelected means nothing is selected.
  112.     2) kContainSelected means a volume, folder, catalog, dnode, or PAB is selected.
  113.     3) kSDPLockedContainerSelected means one of the above, but no access privledges.
  114.     4) kSDPRecordSelected means that a record is currently selected.
  115. }
  116. { Values of SDPSelectionState }
  117.  
  118. CONST
  119.     kSDPNothingSelected            = 0;
  120.     kSDPLockedContainerSelected    = 1;
  121.     kSDPContainerSelected        = 2;
  122.     kSDPRecordSelected            = 3;
  123.     kSDPRecordAliasSelected        = 4;
  124.     kSDPContainerAliasSelected    = 5;
  125.  
  126.  
  127. TYPE
  128.     SDPSelectionState                    = UInt16;
  129.  
  130.  
  131. {
  132. This type informs the caller of the action the user took, either as the result
  133. of an event (as returned by SDPPanelEvent) or when SDPOpenSelectedItem is called.
  134.  
  135. kSDPProcessed means that the event (or call to SDPOpenSelectedItem) resulted in no
  136. state change.
  137.  
  138. kSDPSelectedAnItem indicates that the user wants to select the currently-hilited
  139. record. This is returned, for example, when a user double-clicks on a record.
  140.  
  141. kSDPChangedSelection implies that the user clicked on a new item (which may mean
  142. that no item is selected).
  143. }
  144. { Values of SDPPanelState }
  145.  
  146. CONST
  147.     kSDPProcessed                = 0;
  148.     kSDPSelectedAnItem            = 1;
  149.     kSDPChangedSelection        = 2;
  150.  
  151.  
  152. TYPE
  153.     SDPPanelState                        = UInt16;
  154. {
  155. Your application may read any of the fields in a SDPPanelRecord, but it should
  156. use the appropriate routines to make changes to the records with the exception
  157. of the refCon field which your application may read or write at will.  Private
  158. information follows the SDPPanelRecord, so the handle must not be re-sized.
  159. }
  160.     SDPPanelRecordPtr = ^SDPPanelRecord;
  161.     SDPPanelRecord = RECORD
  162.         bounds:                    Rect;
  163.         visible:                BOOLEAN;
  164.         enabled:                BOOLEAN;
  165.         focused:                BOOLEAN;
  166.         padByte:                SInt8;
  167.         identity:                AuthIdentity;
  168.         refCon:                    LONGINT;
  169.         listRect:                Rect;
  170.         popupRect:                Rect;
  171.         numberOfRows:            INTEGER;
  172.         rowHeight:                INTEGER;
  173.         pabMode:                BOOLEAN;
  174.         filler1:                BOOLEAN;
  175.     END;
  176.  
  177.     SDPPanelPtr                            = ^SDPPanelRecord;
  178.     SDPPanelHandle                        = ^SDPPanelPtr;
  179. {$IFC TYPED_FUNCTION_POINTERS}
  180.     PanelBusyProcPtr = PROCEDURE(Panel: SDPPanelHandle; busy: BOOLEAN);
  181. {$ELSEC}
  182.     PanelBusyProcPtr = ProcPtr;
  183. {$ENDC}
  184.  
  185.     PanelBusyUPP = UniversalProcPtr;
  186.  
  187. CONST
  188.     uppPanelBusyProcInfo = $000001C0;
  189.  
  190. FUNCTION NewPanelBusyProc(userRoutine: PanelBusyProcPtr): PanelBusyUPP;
  191.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  192.     INLINE $2E9F;
  193.     {$ENDC}
  194.  
  195. PROCEDURE CallPanelBusyProc(Panel: SDPPanelHandle; busy: BOOLEAN; userRoutine: PanelBusyUPP);
  196.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  197.     INLINE $205F, $4E90;
  198.     {$ENDC}
  199.  
  200. TYPE
  201.     PanelBusyProc                        = PanelBusyUPP;
  202. { Find Panel Structures }
  203.  
  204. CONST
  205.     kSDPItemIsSelectedBit        = 0;
  206.     kSDPFindTextExistsBit        = 1;
  207.  
  208. { Values of SDPFindPanelState }
  209.     kSDPItemIsSelectedMask        = $01;
  210.     kSDPFindTextExistsMask        = $02;
  211.  
  212.  
  213. TYPE
  214.     SDPFindPanelState                    = UInt16;
  215. { Values of SDPFindPanelFocus }
  216.  
  217. CONST
  218.     kSDPFindPanelNoFocus        = 0;
  219.     kSDPFindPanelListHasFocus    = 1;
  220.     kSDPFindPanelTextHasFocus    = 2;
  221.  
  222.  
  223. TYPE
  224.     SDPFindPanelFocus                    = UInt16;
  225.  
  226.  
  227.     SDPFindPanelRecordPtr = ^SDPFindPanelRecord;
  228.     SDPFindPanelRecord = RECORD
  229.         upperLeft:                Point;
  230.         visible:                BOOLEAN;
  231.         enabled:                BOOLEAN;
  232.         nowFinding:                BOOLEAN;
  233.         padByte:                SInt8;
  234.         currentFocus:            SDPFindPanelFocus;
  235.         identity:                AuthIdentity;
  236.         simultaneousSearchCount: INTEGER;
  237.         refCon:                    LONGINT;
  238.     END;
  239.  
  240.     SDPFindPanelPtr                        = ^SDPFindPanelRecord;
  241.     SDPFindPanelHandle                    = ^SDPFindPanelPtr;
  242. { Values of SDPFindPanelResult }
  243.  
  244. CONST
  245.     kSDPSelectedAFindItem        = 0;
  246.     kSDPFindSelectionChanged    = 1;
  247.     kSDPFindCompleted            = 2;
  248.     kSDPTextStateChanged        = 3;
  249.     kSDPFocusChanged            = 4;
  250.     kSDPSelectionAndFocusChanged = 5;
  251.     kSDPMenuChanged                = 6;
  252.     kSDPSelectionAndMenuChanged    = 7;
  253.     kSDPProcessedFind            = 8;
  254.  
  255.  
  256. TYPE
  257.     SDPFindPanelResult                    = UInt16;
  258.     PackedRStringListHandle                = ^PackedPathNamePtr;
  259. {$IFC TYPED_FUNCTION_POINTERS}
  260.     FindPanelBusyProcPtr = PROCEDURE(findPanel: SDPFindPanelHandle; busy: BOOLEAN);
  261. {$ELSEC}
  262.     FindPanelBusyProcPtr = ProcPtr;
  263. {$ENDC}
  264.  
  265.     FindPanelBusyUPP = UniversalProcPtr;
  266.  
  267. CONST
  268.     uppFindPanelBusyProcInfo = $000001C0;
  269.  
  270. FUNCTION NewFindPanelBusyProc(userRoutine: FindPanelBusyProcPtr): FindPanelBusyUPP;
  271.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  272.     INLINE $2E9F;
  273.     {$ENDC}
  274.  
  275. PROCEDURE CallFindPanelBusyProc(findPanel: SDPFindPanelHandle; busy: BOOLEAN; userRoutine: FindPanelBusyUPP);
  276.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  277.     INLINE $205F, $4E90;
  278.     {$ENDC}
  279.  
  280. TYPE
  281.     FindPanelBusyProc                    = FindPanelBusyUPP;
  282. { Prompt For Identity Routines }
  283. FUNCTION SDPPromptForID(VAR id: AuthIdentity; guestPrompt: Str255; specificIDPrompt: Str255; localIDPrompt: Str255; {CONST}VAR recordType: RString; permittedKinds: SDPIdentityKind; VAR selectedKind: SDPIdentityKind; {CONST}VAR loginFilter: RecordID; filterKind: SDPLoginFilterKind): OSErr;
  284.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  285.     INLINE $203C, $0010, $0388, $AA5D;
  286.     {$ENDC}
  287.  
  288.  
  289. {
  290. SDPNewPanel creates a new panel. You supply the window in which the panel
  291. is to live, the bounds for the panel (which includes both the menu and the list),
  292. whether or not the panel is to be initially visible, the initial RLI (nil for
  293. catalogs and volumes), the types of records that will be shown (only a single
  294. (non-nil) type which may contain wildcards), the identity by which to browse
  295. (for access control reasons), and a refCon which is  available to the caller.
  296. }
  297. FUNCTION SDPNewPanel(VAR newPanel: SDPPanelHandle; window: WindowPtr; {CONST}VAR bounds: Rect; visible: BOOLEAN; enabled: BOOLEAN; {CONST}VAR initialRLI: PackedRLI; {CONST}VAR typesList: RStringPtr; typeCount: UInt32; identity: AuthIdentity; enumFlags: DirEnumChoices; matchTypeHow: ByteParameter; refCon: LONGINT): OSErr;
  298.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  299.     INLINE $203C, $0015, $0064, $AA5D;
  300.     {$ENDC}
  301.  
  302. {
  303. SDPSetIdentity Sets the identity used for browsing.  NOTE: This call is likely to go
  304. away if the new authentication scheme works.
  305. }
  306. FUNCTION SDPSetIdentity(panel: SDPPanelHandle; identity: AuthIdentity): OSErr;
  307.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  308.     INLINE $203C, $0004, $0073, $AA5D;
  309.     {$ENDC}
  310.  
  311.  
  312.  
  313. {
  314. SDPGetNewPanel is similar to SDPNewPanel above, except it takes a resource id of a
  315. 'panl' resource.
  316. }
  317. FUNCTION SDPGetNewPanel(VAR newPanel: SDPPanelHandle; resourceID: INTEGER; window: WindowPtr; {CONST}VAR initialRLI: PackedRLI; identity: AuthIdentity): OSErr;
  318.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  319.     INLINE $203C, $0009, $0065, $AA5D;
  320.     {$ENDC}
  321.  
  322. {
  323. Call this when you're completely done with a panel. It deallocates all of the
  324. associated data structures.
  325. }
  326. FUNCTION SDPDisposePanel(panel: SDPPanelHandle): OSErr;
  327.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  328.     INLINE $203C, $0002, $0066, $AA5D;
  329.     {$ENDC}
  330.  
  331. {
  332. If the panel is visible, it makes it invisible by hiding the menu, turning off
  333. drawing of the list, and erasing and  invaling the list's rectangle.
  334. }
  335. FUNCTION SDPHidePanel(panel: SDPPanelHandle): OSErr;
  336.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  337.     INLINE $203C, $0002, $0067, $AA5D;
  338.     {$ENDC}
  339.  
  340. { If the panel is invisible, it makes it visible and draws it. }
  341. FUNCTION SDPShowPanel(panel: SDPPanelHandle): OSErr;
  342.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  343.     INLINE $203C, $0002, $0068, $AA5D;
  344.     {$ENDC}
  345.  
  346. { Disables the list and menu so that it won't accept any commands. }
  347. FUNCTION SDPEnablePanel(panel: SDPPanelHandle; enable: BOOLEAN): OSErr;
  348.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  349.     INLINE $203C, $0003, $0069, $AA5D;
  350.     {$ENDC}
  351. {
  352. Move the upper-left-hand corner of the panel to (h,v), given in local coordinates of
  353. the panel's window.
  354. }
  355. FUNCTION SDPMovePanel(panel: SDPPanelHandle; h: INTEGER; v: INTEGER): OSErr;
  356.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  357.     INLINE $203C, $0004, $006B, $AA5D;
  358.     {$ENDC}
  359.  
  360. {
  361. Resizes the panel to have the given width and height (keeping the upper-left-hand
  362. corner in a fixed position).
  363. }
  364. FUNCTION SDPSizePanel(panel: SDPPanelHandle; width: INTEGER; height: INTEGER): OSErr;
  365.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  366.     INLINE $203C, $0004, $006C, $AA5D;
  367.     {$ENDC}
  368.  
  369. {
  370. This routine simulates a double-click on the selected item (if there is no selected
  371. item, then it does nothing), and it returns the result of that "double-click" via the
  372. whatHappened parameter. If a container is selected, then that container will be
  373. opened and kMovedDownTheHierarchy is returned. If, however, the user is at the lowest
  374. level in the hierarchy, then kSDPSelectedAnItem is returned.
  375. }
  376. FUNCTION SDPOpenSelectedItem(panel: SDPPanelHandle; VAR whatHappened: SDPPanelState): OSErr;
  377.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  378.     INLINE $203C, $0004, $006D, $AA5D;
  379.     {$ENDC}
  380.  
  381. {
  382. Returns whether a record is selected, something else is selected, or nothing is
  383. selected.
  384. }
  385. FUNCTION SDPGetPanelSelectionState(panel: SDPPanelHandle; VAR itsState: SDPSelectionState): OSErr;
  386.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  387.     INLINE $203C, $0004, $006E, $AA5D;
  388.     {$ENDC}
  389.  
  390. {
  391. Returns the size of the currently-selected DSSpec, or zero if a record is
  392. not selected.  It is safe to do a NewPtr (SDPGetPanelSelectionSize (...))
  393. }
  394. FUNCTION SDPGetPanelSelectionSize(panel: SDPPanelHandle; VAR dsSpecSize: UInt16): OSErr;
  395.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  396.     INLINE $203C, $0004, $0072, $AA5D;
  397.     {$ENDC}
  398.  
  399. {
  400. Returns the currently-selected DSSpec, or a zero-lengthed
  401. DSSpec if a record is not selected. It is assumed that the selection
  402. buffer allocated is large enough.
  403. }
  404. FUNCTION SDPGetPanelSelection(panel: SDPPanelHandle; VAR selection: PackedDSSpec): OSErr;
  405.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  406.     INLINE $203C, $0004, $006F, $AA5D;
  407.     {$ENDC}
  408.  
  409. {
  410. Forces browsing to the specified RLI. If prli is the current RLI, then it does
  411. nothing.
  412. }
  413. FUNCTION SDPSetPath(panel: SDPPanelHandle; {CONST}VAR prli: PackedRLI): OSErr;
  414.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  415.     INLINE $203C, $0004, $0070, $AA5D;
  416.     {$ENDC}
  417.  
  418. {
  419. This is the main driver for the panel.  You should pass all events to SDPPanelEvent
  420. including NULL events.  If you have more than 1 panel, you will need to
  421. call SDPPanelEvent for each panel.  NOTE:  For Update Events you will also need to call
  422. SDPUpdatePanel as described below.
  423. }
  424. FUNCTION SDPPanelEvent(panel: SDPPanelHandle; {CONST}VAR theEvent: EventRecord; VAR whatHappened: SDPPanelState): OSErr;
  425.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  426.     INLINE $203C, $0006, $0071, $AA5D;
  427.     {$ENDC}
  428.  
  429.  
  430. {
  431. SDPUpdatePanel should be called in response to an update event.  Generally you will
  432. have first called BeginUpdate, and pass the windows visRgn as theRgn.  If NULL
  433. is passed for theRgn the entire panel is re-drawn.  NOTE:  Drawing is not cliped to
  434. theRgn, if this is desired, you must first call SetClip.
  435. }
  436. FUNCTION SDPUpdatePanel(panel: SDPPanelHandle; theRgn: RgnHandle): OSErr;
  437.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  438.     INLINE $203C, $0004, $006A, $AA5D;
  439.     {$ENDC}
  440.  
  441. {
  442. SDPSelectString scrolls and selects the closest matching string at the current
  443. level.  This is the same behavior as if the user typed in the given string.
  444. }
  445. FUNCTION SDPSelectString(panel: SDPPanelHandle; {CONST}VAR name: RString): OSErr;
  446.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  447.     INLINE $203C, $0004, $0074, $AA5D;
  448.     {$ENDC}
  449. {
  450. SDPGetPathLength returns the length in bytes required to hold the current path name
  451. in RLI format.  This corresponds to the path name in the popup menu.
  452. }
  453. FUNCTION SDPGetPathLength(panel: SDPPanelHandle; VAR pathNameLength: UInt16): OSErr;
  454.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  455.     INLINE $203C, $0004, $0075, $AA5D;
  456.     {$ENDC}
  457. { SDPGetPath returns the current rli. }
  458. FUNCTION SDPGetPath(panel: SDPPanelHandle; VAR prli: PackedRLI; VAR dsRefNum: INTEGER): OSErr;
  459.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  460.     INLINE $203C, $0006, $0076, $AA5D;
  461.     {$ENDC}
  462. {
  463. SDPSetFocus will draw the focus rectangle or erase the focus rectangle depending upon
  464. the focus boolean.
  465. }
  466. FUNCTION SDPSetFocus(panel: SDPPanelHandle; focus: BOOLEAN): OSErr;
  467.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  468.     INLINE $203C, $0003, $0077, $AA5D;
  469.     {$ENDC}
  470. {
  471. SDPSetPanelBalloonHelp allows clients to specify a STR# resource id to use for 
  472. balloon help.  Balloon help is unavailable until this call is made.
  473. }
  474. FUNCTION SDPSetPanelBalloonHelp(panel: SDPPanelHandle; balloonHelpID: INTEGER): OSErr;
  475.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  476.     INLINE $203C, $0003, $0078, $AA5D;
  477.     {$ENDC}
  478. {
  479. SDPInstallPanelBusyProc allows clients to install a CB that will be called while
  480. the panel is aynchronously busy.
  481. }
  482. FUNCTION SDPInstallPanelBusyProc(panel: SDPPanelHandle; busyProc: PanelBusyProc): OSErr;
  483.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  484.     INLINE $203C, $0004, $0079, $AA5D;
  485.     {$ENDC}
  486.  
  487. FUNCTION SDPNewFindPanel(VAR newPanel: SDPFindPanelHandle; window: WindowPtr; upperLeft: Point; layoutResourceID: INTEGER; visible: BOOLEAN; enabled: BOOLEAN; {CONST}VAR typesList: RStringPtr; typeCount: LONGINT; matchTypeHow: ByteParameter; identity: AuthIdentity; simultaneousSearchCount: INTEGER; initialFocus: SDPFindPanelFocus; refCon: LONGINT): OSErr;
  488.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  489.     INLINE $203C, $0014, $08FC, $AA5D;
  490.     {$ENDC}
  491. FUNCTION SDPDisposeFindPanel(findPanel: SDPFindPanelHandle): OSErr;
  492.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  493.     INLINE $203C, $0002, $08FD, $AA5D;
  494.     {$ENDC}
  495. FUNCTION SDPStartFind(findPanel: SDPFindPanelHandle): OSErr;
  496.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  497.     INLINE $203C, $0002, $08FE, $AA5D;
  498.     {$ENDC}
  499. FUNCTION SDPStopFind(findPanel: SDPFindPanelHandle): OSErr;
  500.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  501.     INLINE $203C, $0002, $08FF, $AA5D;
  502.     {$ENDC}
  503. FUNCTION SDPFindPanelEvent(findPanel: SDPFindPanelHandle; {CONST}VAR event: EventRecord; VAR whatHappened: SDPFindPanelResult): OSErr;
  504.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  505.     INLINE $203C, $0006, $0900, $AA5D;
  506.     {$ENDC}
  507. FUNCTION SDPUpdateFindPanel(findPanel: SDPFindPanelHandle; theRgn: RgnHandle): OSErr;
  508.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  509.     INLINE $203C, $0004, $0901, $AA5D;
  510.     {$ENDC}
  511. FUNCTION SDPShowFindPanel(findPanel: SDPFindPanelHandle): OSErr;
  512.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  513.     INLINE $203C, $0002, $0902, $AA5D;
  514.     {$ENDC}
  515. FUNCTION SDPHideFindPanel(findPanel: SDPFindPanelHandle): OSErr;
  516.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  517.     INLINE $203C, $0002, $0903, $AA5D;
  518.     {$ENDC}
  519. FUNCTION SDPMoveFindPanel(findPanel: SDPFindPanelHandle; h: INTEGER; v: INTEGER): OSErr;
  520.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  521.     INLINE $203C, $0004, $0904, $AA5D;
  522.     {$ENDC}
  523. FUNCTION SDPEnableFindPanel(findPanel: SDPFindPanelHandle; enabled: BOOLEAN): OSErr;
  524.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  525.     INLINE $203C, $0003, $0905, $AA5D;
  526.     {$ENDC}
  527. FUNCTION SDPSetFindPanelFocus(findPanel: SDPFindPanelHandle; newFocus: SDPFindPanelFocus): OSErr;
  528.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  529.     INLINE $203C, $0003, $0906, $AA5D;
  530.     {$ENDC}
  531. FUNCTION SDPGetFindPanelState(findPanel: SDPFindPanelHandle; VAR itsState: SDPFindPanelState): OSErr;
  532.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  533.     INLINE $203C, $0004, $0907, $AA5D;
  534.     {$ENDC}
  535. FUNCTION SDPGetFindPanelSelectionSize(findPanel: SDPFindPanelHandle; VAR size: UInt16): OSErr;
  536.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  537.     INLINE $203C, $0004, $0908, $AA5D;
  538.     {$ENDC}
  539. FUNCTION SDPGetFindPanelSelection(findPanel: SDPFindPanelHandle; VAR selection: PackedDSSpec): OSErr;
  540.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  541.     INLINE $203C, $0004, $0909, $AA5D;
  542.     {$ENDC}
  543. FUNCTION SDPSetFindPanelBalloonHelp(findPanel: SDPFindPanelHandle; balloonHelpID: INTEGER): OSErr;
  544.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  545.     INLINE $203C, $0003, $090A, $AA5D;
  546.     {$ENDC}
  547. FUNCTION SDPSetFindIdentity(findPanel: SDPFindPanelHandle; identity: AuthIdentity): OSErr;
  548.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  549.     INLINE $203C, $0004, $090B, $AA5D;
  550.     {$ENDC}
  551. FUNCTION SDPInstallFindPanelBusyProc(findPanel: SDPFindPanelHandle; busyProc: FindPanelBusyProc): OSErr;
  552.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  553.     INLINE $203C, $0004, $090C, $AA5D;
  554.     {$ENDC}
  555.  
  556.  
  557. FUNCTION SDPGetIconByType({CONST}VAR recordType: RString; whichIcons: IconSelectorValue; VAR iconSuite: Handle): OSErr;
  558.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  559.     INLINE $303C, $0400, $AA5C;
  560.     {$ENDC}
  561. FUNCTION SDPGetDSSpecIcon({CONST}VAR packedDSSpec: PackedDSSpec; whichIcons: IconSelectorValue; VAR iconSuite: Handle): OSErr;
  562.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  563.     INLINE $303C, $0401, $AA5C;
  564.     {$ENDC}
  565. FUNCTION SDPGetCategories(VAR categories: PackedRStringListHandle; VAR displayNames: PackedRStringListHandle): OSErr;
  566.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  567.     INLINE $303C, $0402, $AA5C;
  568.     {$ENDC}
  569. FUNCTION SDPGetCategoryTypes({CONST}VAR category: RString; VAR types: PackedRStringListHandle): OSErr;
  570.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  571.     INLINE $303C, $0403, $AA5C;
  572.     {$ENDC}
  573.  
  574.  
  575.  
  576. FUNCTION SDPResolveAliasFile(fileSpec: FSSpecPtr; resolvedDSSpec: PackedDSSpecHandle; identity: AuthIdentity; mayPromptUser: BOOLEAN): OSErr;
  577.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  578.     INLINE $203C, $0007, $0E74, $AA5D;
  579.     {$ENDC}
  580. FUNCTION SDPResolveAliasDSSpec(theAliasDSSpec: PackedDSSpecHandle; identity: AuthIdentity; mayPromptUser: BOOLEAN): OSErr;
  581.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  582.     INLINE $203C, $0005, $0E75, $AA5D;
  583.     {$ENDC}
  584. FUNCTION SDPRepairPersonalDirectory(VAR pd: FSSpec; showProgress: BOOLEAN): OSErr;
  585.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  586.     INLINE $203C, $0003, $1A2C, $AA5D;
  587.     {$ENDC}
  588.  
  589. {$ALIGN RESET}
  590. {$POP}
  591.  
  592. {$SETC UsingIncludes := OCEStandardDirectoryIncludes}
  593.  
  594. {$ENDC} {__OCESTANDARDDIRECTORY__}
  595.  
  596. {$IFC NOT UsingIncludes}
  597.  END.
  598. {$ENDC}
  599.